/**
 * 
 */
package com.cnhaimei.net;

/**
 * @author Administrator
 * 
 */
public abstract class NetSocket {
	protected int id;

	public abstract void start();

	public abstract boolean isRun();

	public abstract void stop();

	public interface SocketDataListener {
		void data(NetSocket socket, byte[] head, int headLenth);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	

}
